from fastapi import APIRouter
from app.response import  success
import random

router = APIRouter(prefix="/api/screen")

@router.get("/data", tags=['大屏数据接口'], summary="大屏数据接口")
def data():
    data = {
        "left":{
            "c1": random.randint(1,90),
            "c2": random.randint(1,12390),
            "c3": random.randint(1,1290)
        },
        "center":{
            "total": random.randint(10000,1000000),
            "pe01": random.randint(1,90),
            "pe02": random.randint(1,90),
            "echat01": [
                [random.randint(100,999) for v in range(12)],
                [random.randint(100,999) for v in range(12)],
                [random.randint(100,999) for v in range(12)]
            ]
        }
    }
    return success("OK", data)
